package com.sdkteam.Others;

public class Score {
	int level;

	int scores = 100;
	int[] bonusscore = { 100, 100, 400, 600, 1000, 2000, 3000, 6000, 10000,
			14000, 22000, 30000, 40000, 60000, 85000, 150000 };

	public Score(int level) {
		this.level = level;
	}

	public int getScores(boolean win) {
		if (win)
			scores = bonusscore[level - 1];
		else {
			int residual = level / 5;
			switch (residual) {
			case 0:
				scores = bonusscore[0];
				break;
			case 1:
				scores = bonusscore[5];
				break;
			case 2:
				scores = bonusscore[10];
				break;
			case 3:
				scores = bonusscore[15];
				break;

			}
		}
		return scores;
	}

}
